package com.abl.core.service.sys;


import com.abl.core.domain.db.SysMenu;
import com.alibaba.fastjson2.JSONArray;

import java.util.List;

/**
 * 资源表服务
 */
public interface SysMenuService {

    boolean insert(SysMenu param);

    boolean delete(String ids);

    boolean update(SysMenu param);

    //根据ID和PID查库，返回树结构JSON数组 ["PID-0","PID-01","自身ID"]
    JSONArray getTreeIds(String nowId, String pid);

    List<SysMenu> allMenuCache();

    List<SysMenu> userHasMenu();

}
